#! /bin/sh

# execute this script from the top-level directory
HOSTNAME=`hostname`

FFLAGS='-O2 -fomit-frame-pointer'
CXXFLAGS='-O2 -fomit-frame-pointer'
CPPFLAGS="-I$HOME/local-ia64/include"
LDFLAGS="-L$HOME/local-ia64/lib"
MAKE=make

export CC F77 F90 LDFLAGS CFLAGS FFLAGS CPPFLAGS CXXFLAGS MAKE

OMP_NUM_THREADS=1; export OMP_NUM_THREADS

rm -rf $HOSTNAME
mkdir $HOSTNAME

( 
  cd $HOSTNAME
  ../configure --disable-single
  make -k; make -k; make -k benchmark; make clean
  ../configure --enable-single
  make -k; make -k; make -k benchmark; make clean
  make collect
)
